﻿using System;
using System.Data;
using System.Data.SqlClient;
using System.Collections;
using System.Configuration;
using System.Net;
using System.IO;
namespace ProcessesSMS
{
    /// <summary>
    /// Summary description for CKVN.
    /// </summary>
    public class VTOOL
    {

        private SMS_MO WMO;
        private SMS_MT WMT;
        //private SMS_LIST WML;
        ArrayList arr = new ArrayList();
        public VTOOL(SMS_MO MO)
        {
            WMO = MO;
        }

        public VTOOL()
        {
        }
        public void run()
        {
            WMT = new SMS_MT(WMO);
            string msgbody = "";
            if (WMO.ServiceID.Replace("04", "") == "6072")
            {
                msgbody = "De tai pham tra cuu thong tin Tygia Ngoai Te,GiaVang,Chung Khoan,tu di dong soan tin: VT gui 6172";
            }
            else
            {
                msgbody = "Phan mem tra cuu TyGia Ngoai Te,Gia Vang,Chung Khoan,tu di dong.Tai ve: http://6x72.vn/Download/VTool ,xem huong dan su dung: http://6x72.vn/HDSD/VTool";
            }
            WMT.AddMessage(WMO.UserID, msgbody, SMS_ContentType.SMS_TEXT);
            WMT.MsgType = SMS_MsgType.SMS_TINHTIEN;
            WMT.Insert();
            return;
        }     
    }
}
